﻿using System.ComponentModel;
using Newtonsoft.Json;

namespace Ecobee.Net
{
	public interface IApiObject
	{
		string UniqueKey { get; }
		string GetKeyValue(dynamic dataObject);
		string Serialize(Formatting formatting);
		void LoadFrom(string json);
		void LoadFrom(dynamic dataObject);
		dynamic JsonObject();
		string JsonText { get; }
	}
}
